//
//  EJSAboutUsViewController.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/13.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "EJSAboutUsViewController.h"
#import "EJSAboutUsRequest.h"


@interface EJSAboutUsViewController ()

@end

@implementation EJSAboutUsViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"关于我们";
    [self loadAboutUs];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)loadAboutUs{
    [[EJSAboutUsRequest new] asyncRequestWithsuccessHandler:^(BaseResponse *response) {
        NSLog(@"%@",response);
        
        NSString *imgStyle=@"<style type=\"text/css\">img{max-width:100%;height:auto;} </style>";
        NSString *textFontString = [NSString stringWithFormat:@"<style type=\"text/css\">*{font-size:%0.0fpx; color:#343434} </style>",32.0];
        NSString *htmlString = [NSString stringWithFormat:@"%@%@%@", imgStyle, textFontString, response.data];
        self.webUrl = htmlString;
        [self reloadRequest];
    } failHandler:^(BaseResponse *response) {
        
    }];
}


@end
